package com.atguigu.gmall.order.vo;

import com.atguigu.gmall.user.entity.UserAddress;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
public class OrderConfirmRespVo {

    //商品列表
    private List<SkuDetail> detailArrayList;
    //商品总数量
    private Integer totalNum;
    //订单总金额
    private BigDecimal totalAmount;
    //收货地址
    private List<UserAddress> userAddressList;
    //流水号
    private String tradeNo;

    //商品详情
    @Data//商品{skuId、imgUrl、skuName、orderPrice、skuNum}
    public static class SkuDetail{
        private Long skuId;
        private String imgUrl;
        private String skuName;
        private BigDecimal orderPrice;
        private Integer skuNum;
        private String hasStock = "1";//库存 1：有货   0：无货
    }
}
